package biblio;

import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.WebResource;

public class Test {
	   public static final String URI = "http://localhost:9998/";

	   public static void main(String[] args) {
	      final BiblioRequest request = new BiblioRequest();
	      request.fullname = "Jack";

	      Client client = new Client();
	      WebResource resource = client.resource(URI + "Books");

	      final BiblioResponse response =
	    	  resource.type("text/plain").post(BiblioResponse.class, request);

	      System.err.println(response);
	   }

}
